﻿using System;
using System.Net.Http;
using HupunSDK.Core;
using HupunSDK_API.Models;
using HupunSDK_API.Response;
using Newtonsoft.Json;

namespace HupunSDK_API.Request
{
    public class QueryTradesRequest : BaseRequest<HupunQueryTradeResponse>
    {
        [JsonProperty("limit")]
        public int Limit { get; set; }

        [JsonProperty("page")]
        public int Page { get; set; }

        [JsonProperty("create_time")]
        public long? CreateTime { get; set; }

        [JsonProperty("modify_time")]
        public long? ModifyTime { get; set; }

        [JsonProperty("end_time")]
        public long? EndTime { get; set; }

        [JsonProperty("bill_code")]
        public string BillCode { get; set; }

        public override string GetApiName() => "/erp/opentrade/query/trades";

        public override HttpMethod GetHttpMethod() => HttpMethod.Post;
    }
}
